import request from "@/utils/request";

// 获取所有
const getAllCityDetail = () => {
    return request({
        url: `/api/cityDetail/selectAll`,
        method: 'get',
        // headers: { 'Content-Type': 'application/json;charset=utf-8' }
    });
};

// 删除城市
const deleteCityDetail = (id) => {
    return request({
        url: `/api/cityDetail/${id}`,
        method: 'delete',
    });
};

// 修改
const updateCityDetail = (data) => {
    return request({
        url: `/api/cityDetail`,
        method: 'put',
        data: data
        // headers: { 'Content-Type': 'application/json;charset=utf-8' }
    });
};
export { getAllCityDetail,deleteCityDetail,updateCityDetail};
